<template>
  <div>
    <Header></Header>
    <SearchBar />
    <Slide :goodCates_list="goodCates_list" :slides_list="slides_list"/>
    <GoodList :titles_list="titles_list" :goods_list="goods_list"/>

    项目首页
  </div>
</template>

<script>
import Header from "./Header.vue";
import SearchBar from "./SearchBar.vue";
import Slide from "./Slide.vue";
import GoodList from "./GoodList.vue";
export default {
  name: "Index",
  data() {
    return {
      goodCates_list: [],
      slides_list: [],

      titles_list: [],
      goods_list: [],
    };
  },
  props: {},

  components: {
    Header,
    SearchBar,
    Slide,
    GoodList,
  },

  created() {},

  mounted() {
    this.getGoodCates();
    this.getSlides();

    // ***********
    // 加载指定类别的商品数据
    this.getGoodsByCate("海鲜水产");
  },

  methods: {
    // 加载指定类别的商品
    getGoodsByCate(){
      
    },
    // 加载商品类别
    getGoodCates(){
      
    },

    getSlides(){
      
    },
  },

  computed: {},

  watch: {},

  directives: {},

  filters: {},
};
</script>

<style scoped>
* {
  margin: 0;
}
</style>
